<template>
    <div>
        <div>
            <router-view></router-view>
            <van-tabbar v-model="active">
                <van-tabbar-item icon="home-o" to="/index">首页</van-tabbar-item>
                <van-tabbar-item icon="shop-collect-o" to="/carts">商城</van-tabbar-item>
                <van-tabbar-item icon="chat-o" badge="1" to="/search">消息</van-tabbar-item>
                <van-tabbar-item icon="friends-o" badge="5" to="/friends">我的</van-tabbar-item>
            </van-tabbar>
        </div>
    </div>
</template>

<script>
export default {
    data: () => {
        return {
            active: 0
        }
    },
    methods: {
    }
}
</script>

<style>

</style>